package com.ruoyi.wetest.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.wetest.mapper.WetestStressTransMetricMapper;
import com.ruoyi.wetest.domain.WetestStressTransMetric;
import com.ruoyi.wetest.service.IWetestStressTransMetricService;

/**
 * 压测事务统计记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-07
 */
@Service
public class WetestStressTransMetricServiceImpl implements IWetestStressTransMetricService 
{
    @Autowired
    private WetestStressTransMetricMapper wetestStressTransMetricMapper;

    /**
     * 查询压测事务统计记录
     * 
     * @param id 压测事务统计记录主键
     * @return 压测事务统计记录
     */
    @Override
    public WetestStressTransMetric selectWetestStressTransMetricById(Long id)
    {
        return wetestStressTransMetricMapper.selectWetestStressTransMetricById(id);
    }

    /**
     * 查询压测事务统计记录列表
     * 
     * @param wetestStressTransMetric 压测事务统计记录
     * @return 压测事务统计记录
     */
    @Override
    public List<WetestStressTransMetric> selectWetestStressTransMetricList(WetestStressTransMetric wetestStressTransMetric)
    {
        return wetestStressTransMetricMapper.selectWetestStressTransMetricList(wetestStressTransMetric);
    }

    /**
     * 新增压测事务统计记录
     * 
     * @param wetestStressTransMetric 压测事务统计记录
     * @return 结果
     */
    @Override
    public int insertWetestStressTransMetric(WetestStressTransMetric wetestStressTransMetric)
    {
        return wetestStressTransMetricMapper.insertWetestStressTransMetric(wetestStressTransMetric);
    }

    /**
     * 修改压测事务统计记录
     * 
     * @param wetestStressTransMetric 压测事务统计记录
     * @return 结果
     */
    @Override
    public int updateWetestStressTransMetric(WetestStressTransMetric wetestStressTransMetric)
    {
        return wetestStressTransMetricMapper.updateWetestStressTransMetric(wetestStressTransMetric);
    }

    /**
     * 批量删除压测事务统计记录
     * 
     * @param ids 需要删除的压测事务统计记录主键
     * @return 结果
     */
    @Override
    public int deleteWetestStressTransMetricByIds(Long[] ids)
    {
        return wetestStressTransMetricMapper.deleteWetestStressTransMetricByIds(ids);
    }

    /**
     * 删除压测事务统计记录信息
     * 
     * @param id 压测事务统计记录主键
     * @return 结果
     */
    @Override
    public int deleteWetestStressTransMetricById(Long id)
    {
        return wetestStressTransMetricMapper.deleteWetestStressTransMetricById(id);
    }
}
